/**
 * Copyright (C), 2018-2019,
 * FileName: DefaultEnum
 * Author:   wbg
 * Date:     2019/8/19 0019 14:38
 * Description: 是否认默认类型的数据
 * History:
 */
package com.yc.mybatis.mybatisplusgenerator.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * 〈一句话功能简述〉<br> 
 * 〈是否认默认类型的数据〉
 *
 * @author wbg
 * @create 2019/8/19 0019 14:38
 * @since 1.0.0
 */
public enum DefaultEnum implements IEnum<Integer> {

    DEFAULT(0,"默认"),NOT_DEFAULT(1,"非默认");
    @EnumValue
    private Integer code;

    private String msg;

    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

    DefaultEnum(Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }

    @Override
    public String toString() {
        return this.msg;
    }
}

